﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Visit_History_Result_List.aspx.cs" MasterPageFile="~/MasterPage.master"
    Inherits="CallRoute_Visit_History_Result_List" %>

<%@ Register Src="../UserControl/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <title>拜访历史</title>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <table width="100%">
            <table id="wsd_inputtable">
                <tr>
                    <td class="tabletitleCenter" runat=server  ID="lblVisitHistoryMessage">
                    
                   
                    </td>
                </tr>
            </table>
            <br />
            <table id="wsd_inputtable">
                <tr>
                    <td width="100%" class="tabletitle">
                        拜访历史列表
                    </td>
                </tr>
            </table>
            <table id="wsd_listtable" width="100%">
                <tr>
                    <td style="width: 100%">
                        <asp:GridView BorderWidth="0" Width="100%" ID="gvVisit" runat="server" AutoGenerateColumns="false"
                            EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                            EnableEmptyContentRender="true" DataKeyNames="ID" OnRowDataBound="gvVisit_RowDataBound"
                            AllowPaging="True">
                            <HeaderStyle CssClass="titlist" />
                            <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                            <Columns>
                                <asp:BoundField HeaderText="巡店督导" DataField="NAME" Visible="false" />
                                <asp:BoundField HeaderText="拜访日期" DataField="START_TIME" DataFormatString="{0:yyyy/MM/dd}"
                                    Visible="false" />
                                <asp:BoundField HeaderText="" DataField="VISIT_ID" Visible="false" />
                                <asp:BoundField HeaderText="进店时间" DataField="START_TIME" DataFormatString="{0:t}" />
                                <asp:BoundField HeaderText="离店时间" DataField="STOP_TIME" DataFormatString="{0:t}" />
                                <asp:BoundField HeaderText="拜访耗时(分钟)" DataField="TIME_LENGTH" />
                                <asp:TemplateField HeaderText="有效拜访">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="订单金额" DataField="TOTAL_AMOUNT" Visible="false" />
                                <asp:BoundField HeaderText="订货数量(箱)" DataField="CSQUANTITY_ORDERED" Visible="false" />
                                <asp:BoundField HeaderText="订货数量(瓶)" DataField="PCQUANTITY_ORDERED" Visible="false" />
                                <asp:BoundField HeaderText="赠品数量(箱)" DataField="ZPCSQUANTITY_ORDERED" Visible="false" />
                                <asp:BoundField HeaderText="赠品数量(瓶)" DataField="ZPPCQUANTITY_ORDERED" Visible="false" />
                            </Columns>
                            <RowStyle CssClass="evenline" />
                            <AlternatingRowStyle CssClass="oddline" />
                            <PagerSettings Visible="true" />
                        </asp:GridView>
                        <br />
                        <uc1:GridPager ID="GridPager1" runat="server" />
                    </td>
                </tr>
            </table>
            <br />
            <table id="wsd_inputtable" width="100%">
                <tr>
                    <td width="100%" class="tabletitle">
                        拜访历史备注:
                    </td>
                </tr>
                <tr>
                    <td nowrap="nowrap"">
                        <asp:TextBox ID="txtRemark" runat="server" Height="111px" Width="482px" BorderStyle="Inset"
                            ReadOnly></asp:TextBox>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Panel ID="option" runat="server" Visible="true">
                <table id="wsd_inputtable">
                    <tr>
                        <td width="100%" class="tabletitle">
                            操作选项
                        </td>
                    </tr>
                    <tr>
                        <td class="buttonarea">
                            <asp:Button ID="Button1" runat="server" class="wsd_button2" Text="重新搜索" OnClick="btnResearch_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            </td> </tr>
        </table>
        </asp:Panel>
    </div>
</asp:Content>
